package com.kuangjia.student_ems.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public class CreateNotificationRequest {
    
    @NotBlank(message = "消息类型不能为空")
    private String type;
    
    private Long userId; // 可以为null，表示系统消息
    
    @NotBlank(message = "消息标题不能为空")
    @Size(min = 1, max = 100, message = "标题长度必须在1-100个字符之间")
    private String title;
    
    @NotBlank(message = "消息内容不能为空")
    @Size(min = 1, max = 500, message = "内容长度必须在1-500个字符之间")
    private String content;
    
    // 构造函数
    public CreateNotificationRequest() {}
    
    public CreateNotificationRequest(String type, Long userId, String title, String content) {
        this.type = type;
        this.userId = userId;
        this.title = title;
        this.content = content;
    }
    
    // getter/setter
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    public Long getUserId() {
        return userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
} 